namespace QLGT_2.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;
    using System.Web.Script.Serialization;

    public partial class tbl_GiaoTrinh
    {
        public tbl_GiaoTrinh()
        {
            tbl_GiaoTrinh_HeDTs = new HashSet<tbl_GiaoTrinh_HeDT>();
            tbl_GiaoTrinh_Nams = new HashSet<tbl_GiaoTrinh_Nam>();
            tbl_MonHocs = new HashSet<tbl_MonHoc>();
            tbl_SachBans = new HashSet<tbl_SachBan>();
        }

        [Key]
        [StringLength(10)]
        public string MaGiaoTrinh { get; set; }

        [Required]
        [StringLength(200)]
        public string TenGiaoTrinh { get; set; }

        public int MaTacGia { get; set; }

        public DateTime? HieuDinh { get; set; }

        public int SoTrang { get; set; }

        public int SoChuong { get; set; }

        public int MaNXB { get; set; }

        public virtual ICollection<tbl_GiaoTrinh_HeDT> tbl_GiaoTrinh_HeDTs { get; set; }

        public virtual ICollection<tbl_GiaoTrinh_Nam> tbl_GiaoTrinh_Nams { get; set; }

        [ScriptIgnore]
        public virtual tbl_NhaXuatBan tbl_NhaXuatBan { get; set; }

        [ScriptIgnore]
        public virtual tbl_TacGia tbl_TacGia { get; set; }

        public virtual ICollection<tbl_MonHoc> tbl_MonHocs { get; set; }

        public virtual ICollection<tbl_SachBan> tbl_SachBans { get; set; }
    }
}
